package stackQueue;

public class SeqStackTest {
	public static void main(String[] args) {

		SeqStack myStack = new SeqStack();
		int test[] = { 1, 3, 5, 7, 9 };
		int n = test.length;

		try {
			for (int i = 0; i < n; i++) {
				myStack.push(new Integer(test[i]));
			}
			System.out.println("stack's top data is " + myStack.getTop());

			System.out.println("out of stack ordre: ");
			while (myStack.notEmpty()) {
				System.out.print(myStack.pop() + " ");
			}

		} catch (Exception e) {
			// TODO: handle exception
			System.out.println(e.getMessage());
		}

	}
}
